<template>
  <div class="hello">
    <router-link to="/home">subapp31应用 home</router-link>
    <h1>subapp31111111---------</h1>
    <p>
      For a guide and recipes on how to configure / customize this project,<br>
      check out the
      <a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
    </p>
    <h5>{{data}}</h5>
    
  </div>
</template>

<script>
    import axios from 'axios'
export default {
  name: 'HelloWorld',
  props: {
    msg: String
  }, data(){
    return{
      data:""
    }
  },
  created(){
    this.getData();
  },
  methods:{
    getData(){
      axios.get("/api31/test").then(res=>{
        console.log(res)
        this.data = res.data.data;
      })
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
